"); echo ""; ?> <?php echo $sitename; ?> "; echo "You are not logged in
"; echo "Or Your session has been expired

"; echo "Login"; echo "

"; echo ""; exit(); } if(isbanned($uid)) { echo "

"; echo "\"x\"/
"; echo "You are Banned

"; $banto = mysql_fetch_array(mysql_query("SELECT timeto, pnreas, exid FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1' OR uid='".$uid."' AND penalty='2'")); $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'")); $remain = $banto[0]- time(); $rmsg = gettimemsg($remain); echo "Time Left: $rmsg
"; $nick = getnick_uid($banto[2]); echo "By: $nick
"; echo "Reason: $banto[1]"; //echo "Login"; echo "

"; echo ""; exit(); } /* if((getposts($sid)<50) AND (getshoutcount($uid)<200)){ ("Error!"); echo "To prevent misuse, this feature is available only to those users who have more than 50 posts or 200 shouts."; echo ""; exit(); } */ if($action=="main") { addonline($uid,"Composing SMS","sms.php?action=$action"); $umsg = getunreadpm($uid); if($umsg>0){ echo "

Inbox($umsg new msg)

"; } ("Compose SMS"); echo "$sitename allows you to send unlimited SMSes for free to any network's mobile no. in India. \":dwarf\"/Even the latest 8xxxxxxxxx series numbers are supported. \":orc\"/
"; echo "Warning: Using this service for abuse will be strictly dealt with, and police action will be taken.
"; $msglength=131-strlen(getnick_sid($sid)); echo "
Enter the 10 digit Indian mobile no.:

Enter your message($msglength chars max):

"; echo ""; } else if ($action=="send"){ addonline(getuid_sid($sid), "Sending an SMS", ""); $sms = mysql_fetch_array(mysql_query("SELECT sms FROM ibwf_users WHERE id='".$uid."'")); ("Sending SMS"); echo "

"; $mobno=$_POST["mobile"]; ///////Test whether cell number is valid(i.e. starting from 8 or 9 and containing 10 digits only) if (!preg_match('/^[9|8]\d{9}$/', $mobno)){ echo "This is not a valid Indian mobile number!!! Please go back and retry.

"; echo ""; exit(); } $message=$_POST["message"]; /////////////if the message + footer is larger than 140 chars truncate the message to fit $add="#".getnick_sid($sid)."@Youngbuzz"; $count=strlen($add); $count=140-$count; if(strlen($message)>$count){ $message=substr($message, 0, $count); $flag[0]=1; $flag[1]=strlen($message); } $message.=$add; $bool=sendsms($mobno, $message); if($bool==true){ if($flag[0]==1){ echo "Your message was longer than $flag[1] characters so it was truncated and first $flag[1] characters have been sent.
"; } echo "Your SMS has been successfully sent to $mobno
"; $sms[0]++; $b1 = mysql_query("UPDATE ibwf_users SET sms='$sms[0]' WHERE id='".$uid."'"); } else{ echo "An error crept in while sending your SMS. Please try after sometime while an admin looks into the issue and fixes it."; } ////////////////////// echo "

"; echo ""; }